package com.nf.practice.test;

import org.junit.jupiter.api.Test;
import org.mockito.stubbing.VoidAnswer1;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class GetClass {
    
    @Test
    public void test() {
        List<String> list = new ArrayList<>();
        list.add("1");
        int i = 1;
        addEle(i,list);
        System.out.println(list);
    }

    public void addEle(int i , List<String> list) {
        list.add("2");
        System.out.println(i);
    }

    @Test
    public void test1() {
        Map<String,String> map = new HashMap<>();
        map.put("name","xiaoming");
        map.put("age","18");
        map.put("tall","180");
        map.put("gender","male");
        System.out.println(getClass().getSimpleName());
    }
}
